<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../../css/skin.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="../../css/easy-ui-themes/icon.css">
<script type="text/javascript" src="../../js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../../js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/common.js"></script>

<script type="text/javascript" src="../../js/rolesearch.js"></script>


</head>
<body class="body">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td width="17" valign="top" background="../../images/mail_leftbg.gif"><img
				src="../../images/left-top-right.gif" width="17" height="29" />
			</td>
			<td valign="top" background="../../images/content-bg.gif">
				<table width="100%" height="31" border="0" cellpadding="0"
					cellspacing="0" class="left_topbg" id="table2">
					<tr>
						<td height="31"><div class="titlebt">角色管理</div>
						</td>
					</tr>
				</table></td>
			<td width="16" valign="top"
				background="../../images/mail_rightbg.gif"><img
				src="../../images/nav-right-bg.gif" width="16" height="29" />
			</td>
		</tr>

		<tr>
			<td valign="bottom" background="../../images/mail_leftbg.gif"></td>
			<td valign="top" style="height:450px;background-color: white;">
				<!-- 这个是主要div -->
				<div style="margin-top:30px">
					<div>
						角色类别:<select id="roleTypeSelect" style="width: 200px;"
							onchange="changedMethod()">
							<option value="1" selected="selected">教师、学生</option>
							<option value="2">教材发行人员、仓库采购人员</option>

						</select>
					</div>
					<div>
						模糊查找-- <span id="roleTyleName">教师、学生帐户</span><br /> 用户名:<input
							type="text" id="searchUname" /><input type="button" value="模糊查找"
							onclick="buildGridView('list_data', '模糊查找'+$('#roleTyleName').text()+'用户:'+$('#searchUname').attr('value'),'../AdminGetAccounts.do?type='+$('#roleTypeSelect').val()+'&IDLike='+$('#searchUname').attr('value'));" />
						<input type="button" value="显示全部"
							onclick="buildGridView('list_data', $('#roleTyleName').text()+'列表','../AdminGetAccounts.do?type='+$('#roleTypeSelect').val());" />

					</div>
					<table id="list_data" cellspacing="0" cellpadding="0">
						<thead>
							<tr>
								<th field="ID">ID</th>
								<th field="name">姓名</th>
								<th field="isbaned">是否停用</th>
								<th field="type">类别</th>
							</tr>

						</thead>

					</table>
					<img src="../../images/loading.gif"
						style="display:none;height:25px;width:25px;" id="LoadingImg" />
					<script type="text/javascript">
						function changedMethod() {
							buildGridView('list_data', $("#roleTypeSelect")
									.find("option:selected").text()
									+ '列表', '../AdminGetAccounts.do?type='
									+ $('#roleTypeSelect').val());
							$('#roleTyleName').text(
									$('#roleTypeSelect')
											.find('option:selected').text());
						}

						buildGridView('list_data', '教师、学生帐户列表',
								'../AdminGetAccounts.do?type=1');
					</script>
				</div>
			</td>
			<td valign="bottom" background="../../images/mail_rightbg.gif">
			</td>
		</tr>


		<tr>
			<td valign="bottom"><img src="../../images/buttom_left2.gif"
				width="17" height="17" />
			</td>
			<td background="../../images/buttom_bgs.gif"><img
				src="../../images/buttom_bgs.gif" width="17" height="17">
			</td>
			<td valign="bottom"><img src="../../images/buttom_right2.gif"
				width="16" height="17" />
			</td>
		</tr>

	</table>
	<div id="dialogid"></div>
	<div id="win"></div>
</body>
</html>



